# 请写出一段 Python 代码实现删除一个 list 里面的重复元素
list1 = [1,2,3,5,2,1,5,7,9]
list=[]
for i in list1:
    if i not in list:
        list.append(i)

print(list)


